package SceneFinal;

import Picture.GameImage;
import Scene1.Scene1;

import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;

public class FinalPanel extends JPanel {
    Scene1 scene1 = new Scene1();
    EndYU en = new EndYU();
    public void changeFont(){
        imgF = en.stackFont.pop();
        repaint();
    }
    BufferedImage imgF =  GameImage.get("/Picture/结束语/场景4-小精灵台词图片/1.png");
    public void paint(Graphics  g) {
        g.drawImage(GameImage.get("/Picture/bgf.png"),0,0,null);
        g.drawImage(scene1.map.get("npc"), -80, 450, null);
        g.drawImage(scene1.map.get("聊天框"), 250, 800, null);
        g.drawImage(scene1.map.get("箭头"), 1200, 970, null);
        g.drawImage(imgF, 360, 840, null);
    }
}
